package com.student.entity;

public class User {
	protected String id;
	protected String uname;
	protected String upass;
	protected int type;
	protected String loginTime;
	protected String ip;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUpass() {
		return upass;
	}
	public void setUpass(String upass) {
		this.upass = upass;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public User(String id, String uname, String upass, int type, String loginTime, String ip) {
		this.id = id;
		this.uname = uname;
		this.upass = upass;
		this.type = type;
		this.loginTime = loginTime;
		this.ip = ip;
	}
	public User(String id, String upass) {
		this.id = id;
		this.upass = upass;
	}
	public User(String id, String loginTime, String ip) {
		this.id = id;
		this.loginTime = loginTime;
		this.ip = ip;
	}
	public User(String id, String uname, String upass, int type) {
		this.id=id;
		this.uname=uname;
		this.upass=upass;
		this.type=type;
	}
	public User(String sid) {
		this.id=sid;
	}
	public User(String id, String uname, String upass, int type, String loginTime) {
		this.id=id;
		this.uname=uname;
		this.upass=upass;
		this.type=type;
		this.loginTime=loginTime;
	}
	public User(String id, String uname, int type, String loginTime) {
		this.id=id;
		this.uname=uname;
		this.type=type;
		this.loginTime=loginTime;
	}
	public User(String id, String uname, int type, String loginTime, String ip) {
		this.id=id;
		this.uname=uname;
		this.type=type;
		this.loginTime=loginTime;
		this.ip=ip;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", uname=" + uname + ", upass=" + upass + ", type=" + type + ", loginTime="
				+ loginTime + ", ip=" + ip + "]";
	}
}
